<?php


namespace app\cms\model\saas;


use app\cms\community\lib\QueryModel;
use iflow\Response;

class saasClientDbModel extends QueryModel
{
    protected $table = 'saas_client_db_table';
    const isSaasModel = true;


    public function saveSaasClientDb(array $saveInfo): Response
    {
        return $this->createData($saveInfo);
    }

    public function updateSaasClientDb(int $saas_id, int $uid, array $saveInfo): Response
    {
        return $this->updateInfo($saveInfo, [
            'saas_id' => $saas_id,
            'uid' => $uid
        ]);
    }
}